function questionCheck(){
    let qone = document.getElementById('question-one');
    let qtwo = document.getElementById('question-two');
    let aone = document.getElementById('user-answer1');
    let atwo = document.getElementById('user-answer2');
    if(qone.value != -1){
        aone.disabled = '';
    }else{
        aone.value = '';
        aone.disabled = 'disabled';
    }
    if(qtwo.value != -1){
        atwo.disabled = '';
    }else{
        atwo.value = '';
        atwo.disabled = 'disabled';
    }
    buttonCheck();
}


function answerCheck(){
    let aone = document.getElementById('user-answer1');
    let atwo = document.getElementById('user-answer2');
    let btn = document.getElementById('btn');
    if(aone.value != '' && atwo.value != ''){
        btn.classList.remove('am-disabled');
    }
}



function buttonCheck(){
    let btn = document.getElementById('btn');
    let str = String(btn.classList);
    if(str.lastIndexOf('am-disabled') == -1){
        btn.classList.add('am-disabled');
    }
}